<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script type="text/javascript">
        var obj={
            name:"xclmf",
            age:58,
            id:18070070,
            fun:function (){
                alert("大括号自定义对象！")
            }
        }
        alert("年龄："+obj.age+"，姓名："+obj.name+"，学号"+obj.id);
        obj.fun();

    </script>
</body>
</html>